module.exports = {
  lintOnSave: false,
  transpileDependencies: [/@lit[\\/]/],
  chainWebpack: (config) => {
    config.module
      .rule('lit')
      .test(/\.js$/)
      .include.add(/node_modules\/@lit/)
      .end()
      .use('babel-loader')
      .loader('babel-loader')
      .options({
        presets: ['@babel/preset-env'],
        plugins: ['@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-nullish-coalescing-operator']
      })
  }
}
